Skip to main content
Version: 3.x.x

CallbackParameters


import { CallbackParameters } from "@hyper-fetch/react"

Description

Defined in react/src/helpers/use-request-events/use-request-events.types.ts:86

Preview

type CallbackParameters<Request,ResponseType> = {
details: ResponseDetailsType;
request: Request;
response: ResponseType;
}

Structure

{
details: {
isCanceled: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
};
request: Request;
response: ResponseType;
}